<form class="form">
  <h3 mat-dialog-title>{{title}}</h3>
  <div mat-dialog-content>
    <mat-form-field class="full-width">
      <input matInput type="text" placeholder="任务内容" />
    </mat-form-field>

    <mat-radio-group>
      <mat-radio-button *ngFor="let priority of priorities" [value]="priority.value">
        {{priority.label}}
      </mat-radio-button>
    </mat-radio-group>

    <mat-form-field class="full-width">
      <input matInput [matDatepicker]="dueDatepicker" type="text" placeholder="任务截止日期" />
      <mat-datepicker-toggle matSuffix [for]="dueDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #dueDatepicker></mat-datepicker>
    </mat-form-field>
    <mat-datepicker #dueDatepicker></mat-datepicker>

    <mat-form-field class="full-width">
      <input matInput [matDatepicker]="remainderDatepicker" type="text" placeholder="提醒日期" />
      <mat-datepicker-toggle matSuffix [for]="remainderDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #remainderDatepicker></mat-datepicker>
    </mat-form-field>

  </div>
  <div mat-dialog-actions>
    <button type="button" mat-raised-button color="primary" (click)="onClick()">保存</button>
    <button type="button" mat-button mat-dialog-close>关闭</button>
  </div>

</form>
